package interpreter.example;

/**
 * 音速
 * @author cheng:
 * @date 2019/4/26 14:33
 */
public class Speed extends Expression{
    @Override
    public void excute(String key, double value) {
        String speed = null;
        if(value < 500){
            speed = "快速";
        } else if(value > 1000){
            speed = "慢速";
        } else {
            speed = "中速";
        }
        System.out.println("speed: " + speed);
    }
}
